<?php
namespace app\model;

class Article extends Common
{
   const ARTICLE_STATUS_ACTIVE = 1;
   const ARTICLE_STATUS_INACTIVE = 0;
    public function categories()
    {
        return $this->belongsToMany(Category::class, 'article_category','category_id','article_id');
    }
}